﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Pulog.Models.Post>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>ShowPost</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ShowPost</h2>

    <fieldset>
        <legend>Fields</legend>
        <p>
            postID: 
            <%= Html.Encode(Model.postID) %>
        </p>
        <p>
            title: 
            <%= Html.Encode(Model.title) %>
        </p>
        <p>
            pubTime: 
            <%= Html.Encode(Model.pubTime) %>
        </p>
        <p>
            authorID: 
            <%= Html.Encode(Model.authorID) %>
        </p>
        <p>
            views: 
            <%= Html.Encode(Model.views) %>
        </p>
        <p>
            property: 
            <%= Html.Encode(Model.property) %>
        </p>
        <p>
            categoryID: 
            <%= Html.Encode(Model.categoryID) %>
        </p>
        <p>
            sticky: 
            <%= Html.Encode(Model.sticky) %>
        </p>
        <p>
            content: 
            <%= Model.content %>
        </p>
        <p>
            password: 
            <%= Html.Encode(Model.password) %>
        </p>
        <p>
            slug: 
            <%= Html.Encode(Model.slug) %>
        </p>
    </fieldset>
    <fieldset>
        <% Html.RenderPartial("ShowPostComments", ViewData.Model.Comments.OrderByDescending(c => c.CommentTime)); %>
    </fieldset>
    <p>
        <%=Html.ActionLink("Edit", "EditPost","Admin", new { id=Model.postID },null) %> |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

